# coding=utf-8
# 全世界最帅的帅哥
import redis

from ysgg1_club_comment.config.redis_config import RedisConfig

creds_provider = redis.UsernamePasswordCredentialProvider(password=RedisConfig.password)

redis_liked_client = redis.Redis(host=RedisConfig.host, port=RedisConfig.port, credential_provider=creds_provider)
jwt_redis_blocklist = redis.Redis(host=RedisConfig.host, port=RedisConfig.port, db=1,
                                  credential_provider=creds_provider)
redis_liked_client = redis.StrictRedis(host=RedisConfig.host, port=RedisConfig.port, db=2,
                                       credential_provider=creds_provider)
